import axios from '../utils/axios';
import {api} from '@/config/api'


//获取角色列表
export const rolelistApi = (data?:any)=>{
  return axios.post(api.rolelist,data)
}
//创建角色
export const createRoleApi = (data?:any)=>{
  return axios.post(api.createRole,data)
}
//编辑角色
export const updateRoleApi = (data?:any)=>{
  return axios.post(api.updateRole,data)
}
//删除角色
export const deleteRoleApi = (data?:any)=>{
  return axios.post(api.deleteRole,data)
}
//绑定菜单
export const bindMenuApi = (data?:any)=>{
  return axios.post(api.bindMenu,data)
}
//根据id获取该角色的权限
export const rolesMenusApi = (data?:any)=>{
  return axios.post(api.rolesMenus,data)
}


